

"""
import sys

print len(sys.modules.keys())

from dexen.system.node.master import env

assert sys.modules.has_key("dexen")
assert sys.modules.has_key("dexen.system")
assert sys.modules.has_key("dexen.system.node")
assert sys.modules.has_key("dexen.system.node.master")
assert sys.modules.has_key("dexen.system.node.master.env")

print len(sys.modules.keys())


old = {}
for key,val in sys.modules.items():
    old[key] = val
    print key, val

sys.modules = old
print sys.modules
"""

"""
import socket

print socket.gethostbyaddr(socket.getfqdn(socket.gethostname()))

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("www.nus.edu.sg", 80))
print s.getsockname()

"""


"""
class A(object):
    def __init__(self):
        pass
    
    @property
    def avg(self):
        return 5
    
    def t(self):
        return self.avg

a = A()
print a.t()

t="{0:{'left'}{'^'}5}{1}".format("",5)
print t
"""
